package org.pay.pay.channel;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.pay.core.entity.TransOrder;
import org.pay.pay.service.RpcCommonService;

/**
 * @author: yangshancheng
 * @date: 17/12/24
 * @description:
 */
@Component
public abstract class BaseTrans extends BaseService implements TransInterface {

    @Autowired
    protected RpcCommonService rpcCommonService;

    @Autowired
    protected PayConfig payConfig;

    public abstract String getChannelName();

    public JSONObject trans(TransOrder transOrder) {
        return null;
    }

    public JSONObject query(TransOrder transOrder) {
        return null;
    }

}
